﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AChance.Func
{
    public static class FunConsole
    {
        /// <summary>
        /// 交易执行信息
        /// </summary>
        public static List<Var.TransExecInfo> TransExecInfos { get; set; } = new List<Var.TransExecInfo>();
        public static class Var
        {
            /// <summary>
            /// 交易执行信息
            /// </summary>
            public class TransExecInfo
            {
                /// <summary>
                /// 交易名称
                /// </summary>
                public string Name { get; set; }
                /// <summary>
                /// 执行耗时
                /// </summary>
                public double Elapsed { get; set; }
                /// <summary>
                /// 总执行次数
                /// </summary>
                public int TotalNumber { get; set; }
                /// <summary>
                /// 总执行耗时
                /// </summary>
                public double TotalTime { get; set; }
                /// <summary>
                /// 成功执行次数
                /// </summary>
                public int Success { get; set; }
                /// <summary>
                /// 成功执行耗时
                /// </summary>
                public double SuccessTime { get; set; }
                /// <summary>
                /// 失败执行次数
                /// </summary>
                public int Fail { get; set; }
                /// <summary>
                /// 失败执行耗时
                /// </summary>
                public double FailTime { get; set; }
                /// <summary>
                /// 失败执行信息
                /// </summary>
                public string FailMsg { get; set; }
            }
        }
    }
}
